billing-prepay-ux

(0 reviews)

TMF654- Tax Estimate towards Matrixx at Group Level

Tax Estimate towards Matrixx at Group Level

URL
https://[localhost]:[port]/billing-prepay-ux/v1/{businessId}/prepayBalanceManagement/topupBalanceEstimate
url Param
nametypedescriptionrequired
businessIdstring2 letter ISO 3166 country code (TT, BB, JM, PA, etc.) identifying the business unit.Y
nametypedescriptionrequired
client_idstringThe client_id identifying the channel. Minimum characters: 5Y
client_secretstringPassword associated with the client_id. Minimum characters: 5Y
X-Correlation-IDstringIdentifier that correlates HTTP request between a client and server. Any identification model (UUDI, checksum, etc.) can be used, as long as it is a unique value to differentiate a transaction.Y
Request for Technical appointment:
curl --location 'https://nonprod.esb.cloud.lla.com/dev/billing-prepay-ux/
v1/PR/prepayBalanceManagement/topupBalanceEstimate' \
--header 'X-Correlation-Id: {{guid}}' \
--header 'client_id: xxxxx' \
--header 'client_secret: xxxxxx' \
--header 'Content-Type: application/json' \
--data '{
"reason": "GroupTaxInquiry",
"amount": {
"amount": 100,
"units": "USD"
},
"partyAccount": {
"id": "MLU-98765",
"name": "MultiLineGroupExternalID"
},
"channel": {
"id": "B2C",
"name": "channel"
}
}'
Definitions

Each of the request parameters is detailed.

nametypedescriptionrequired
reasondatetimeReason for rechargeN
amountobjectAn amount in a given unitN
amount.amountnumberNumeric value in a given unitN
amount.unitsstringUnitN
partyAccountobjectPartyAccount reference. A party account is an arrangement that a party has with an enterprise thatN
partyAccount.idstringMultiLine Group ExternalIdN
Response
{
"status": "completed",
"amount": {
"amount": 100,
"units": "USD"
},
"reason": "TAX ESTIMATE",
"validFor": {
"endDateTime": "65535-12-31T23:59:59.999999Z",
"startDateTime": "2022-08-30T09:07:14.000Z"
},
"bucket": {
"id": "1",
"name": "Prepaid Balance"
},
"impactedBucket": [
{
"amountAfter": 111.5,
"name": "Total Amount",
"item": [
{
"amount": 1,
"name": "CITY SALES TAX"
},
{
"amount": 10.5,
"name": "STATE SALES TAX"
}
]
}
],
"partyAccount": {
"id": "MLU-98765",
"name": "MultiLineGroupExternalID"
}
}
Definitions

Each of the response parameters is detailed.

nametypedescriptionrequired
statusstringValid values for the Action Status TypeN
validForobjectA period of time, either as a deadline (endDateTime only) a startDateTime only, or bothN
validFor.startDateTimedatetimeStart time of the balance. For a periodic or on-demand balance, it is the end time of the period. For a simple balance, it is the end validity time of the balance.",N
validFor.endDateTimedatetimeEnd time of the balance. For a periodic or on-demand balance, it is the end time of the period. For a simple balance, it is the end validity time of the balance.",N
bucketobjectlink to the resource that holds bucket informationN
bucket.idstringResource ID of balance instance.N
bucket.namestringName of balance template as defined in MATRIXX.N
impactedBucketarrayA list of impacted bucketsN
impactedBucket.amountAfterQuantityAmount of balance update.N
impactedBucket.namestringTotal AmountN
impactedBucket.itemarrayA list of impacted bucket itemsN
impactedBucket.item.amountQuantityAmount of balance update.N
impactedBucket.item.namestringTax nameN
and concatenated the complete request bodyN

Possible response error

In this section all the possible data structures received by the client are defined and that must be considered as unsatisfactory when responding to the method.

[ 400 ]

Bad Request - the request could not be understood by the server due to malformed syntax. The client SHOULD NOT repeat the request without modifications.

{
  "errors" : [{
      "code" : 400,
      "message" : "The request is invalid or not properly formed.",
      "description" : "Malformed request syntax, invalid request message framing, or deceptive request routing."
    }]
}
[ 401 ]

Unauthorized - The request has not been applied because it lacks valid authentication credentials for the target resource.

{
"errors" : [{
"code" : 401,
"message" : "The user could not be authenticated for this request.",
"description" : "The request has not been applied because it lacks valid
authentication credentials for the target resource"
}]
}
[ 404 ]

Not Found - server has not found a resource with that URI. This may be temporary and permanent condition. This status code is commonly used when the server does not wish to reveal exactly why the request has been refused, or when no other response is applicable.

{
  "errors" : [{
      "code" : 404,
      "message" : "The server could not find the requested resource.",
      "description" : "The requested operation failed because a resource associated with the request could not be found."
    }]
}
[ 405 ]

Method Not Allowed - HTTP method not allowed for this resource. The method specified in the Request-Line is not allowed for the resource identified by the Request-URI.

{
    "errors": [{
         "code": 405,
         "message": "APIKIT:METHOD_NOT_ALLOWED",
         "description": "HTTP Method DELETE not allowed for : /{businessId}/prepayBalanceManagement/topupBalanceEstimate"
    }]
}
[ 500 ]

Internal Server Error - server encountered an error processing request. This should not happen normally, but it is a generic error message, given when no more specific message is suitable.

{
  "errors" : [{
      "code" : 500,
      "message" : "Internal Server Error",
      "description": "The request failed due to an internal error."
    }]
}
[ 501 ]

Not implemented - indicates that the server does not support the functionality required to fulfill the request. This is the appropriate response when the server does not recognize the request method and is not capable of supporting it for any resource.

{
"errors" : [{
     "code" : 501,
     "message" : "Not implemented",
     "description" : "Operation POST /topupBalanceEstimate for Business Id: xxxx not implemented"
   }]
}

Reviews